package com.smarthealthring.mm.bean;

/**
 * Created by bilibili on 2018/5/26.
 */

public class BaseResponse<T> {
    private String resultcode;
    private String resultmsg;
    private T data;

    public T getContent() {
        return data;
    }

    public void setContent(T data) {
        this.data = data;
    }

    public String getResultcode() {
        return resultcode;
    }

    public void setResultcode(String resultcode) {
        resultcode = resultcode;
    }

    public boolean isSuccess() {
        return resultcode.equals("0000"); //返回码 0000成功  0001失败
    }


    public String getResultmsg() {
        return resultmsg;
    }

    public void setResultmsg(String resultmsg) {
        resultmsg = resultmsg;
    }
}
